package com.k8.rpc.registry;


import com.k8.rpc.Node;
import com.k8.rpc.metadata.AppMetaData;
import com.k8.rpc.url.URL;

import java.util.List;

public interface Registry extends Node {
    void registerInstance(Object appMetaData, URL registerUrl);

    void registerMappingAndConfiguration(URL url);

    void unregister(URL url);

    void subscribe(URL url);

    void unsubscribe(URL url);

    List<URL> lookup(URL url);
}
